home *** CD-ROM | disk | FTP | other *** search
/ Aminet 3 / Aminet 3 - July 1994.iso / Aminet / util / misc / MUser17src.lha / MultiUser / src / Library / LibHeader.c < prev    next >
Encoding:
C/C++ Source or Header  |  1994-03-07  |  3.4 KB  |  119 lines

  1. /************************************************************
  2. * MultiUser - MultiUser Task/File Support System                *
  3. * ---------------------------------------------------------    *
  4. * Library Header                                                            *
  5. * ---------------------------------------------------------    *
  6. * © Copyright 1993-1994 Geert Uytterhoeven                        *
  7. * All Rights Reserved.                                                    *
  8. ************************************************************/
  9.  
  10.  
  11. #include <exec/resident.h>
  12. #include <exec/semaphores.h>
  13. #include <proto/exec.h>
  14.  
  15. #include "multiuser.library_rev.h"
  16. #include "Config.h"
  17. #include "LibHeader.h"
  18. #include "StdLibFunc.h"
  19. #include "Log.h"
  20. #include "Task.h"
  21. #include "Passwd.h"
  22. #include "UserInfo.h"
  23. #include "Protection.h"
  24. #include "Misc.h"
  25. #include "GroupInfo.h"
  26. #include "Monitor.h"
  27.  
  28.  
  29.     /*
  30.      *        Prohibit accidential execution
  31.      */
  32.  
  33. LONG StartUp(void)
  34. {
  35.     return(-1);
  36. }
  37.  
  38.  
  39.     /*
  40.      *        Version/Revision Identifiers
  41.      */
  42.  
  43. char MultiUserName[] = "multiuser.library";
  44. char MultiUserIDString[] = VSTRING;
  45. UWORD MultiUserVersion = VERSION;
  46. UWORD MultiUserRevision = REVISION;
  47.  
  48.  
  49.     /*
  50.      *        Vectors for MakeLibrary()
  51.      */
  52.  
  53. static APTR Vectors[] = {
  54.     muOpen,                            /* Standard Library Function */
  55.     muClose,                            /* Standard Library Function */
  56.     muExpunge,                        /* Standard Library Function */
  57.     muExtFunc,                        /* Standard Library Function */
  58.     muLogoutA,                        /* Public Library Function */
  59.     muLoginA,                        /* Public Library Function */
  60.     muGetTaskOwner,                /* Public Library Function */
  61.     muPasswd,                        /* Public Library Function */
  62.     muAllocUserInfo,                /* Public Library Function */
  63.     muFreeUserInfo,                /* Public Library Function */
  64.     muGetUserInfo,                    /* Public Library Function */
  65.     muOBSOLETE,                        /* Obsolete Library Function */
  66.     muSetDefProtectionA,            /* Public Library Function */
  67.     muGetDefProtection,            /* Public Library Function */
  68.     muSetProtection,                /* Public Library Function */
  69.     muLimitDOSSetProtection,    /* Public Library Function */
  70.     muCheckPasswd,                    /* Public Library Function */
  71.     muFSRendezVous,                /* Private Library Function */
  72.     muGetPasswdDirLock,            /* Public Library Function */
  73.     muGetConfigDirLock,            /* Public Library Function */
  74.     muGetTaskExtOwner,            /* Public Library Function */
  75.     muFreeExtOwner,                /* Public Library Function */
  76.     muGetRelationshipA,            /* Public Library Function */
  77.     muUserInfo2ExtOwner,            /* Public Library Function */
  78.     muAllocGroupInfo,                /* Public Library Function */
  79.     muFreeGroupInfo,                /* Public Library Function */
  80.     muGetGroupInfo,                /* Public Library Function */
  81.     muAddMonitor,                    /* Public Library Function */
  82.     muRemMonitor,                    /* Public Library Function */
  83.     muKill,                            /* Public Library Function */
  84.     muFreeze,                        /* Public Library Function */
  85.     muUnfreeze,                        /* Public Library Function */
  86.     (APTR)-1
  87. };
  88.  
  89.  
  90.     /*
  91.      *        Data for MakeLibrary()
  92.      */
  93.  
  94. static ULONG MakeLibStuff[] = {
  95.     sizeof(struct muBase),
  96.     (ULONG)Vectors,
  97.     0,
  98.     (ULONG)muInit
  99. };
  100.  
  101.  
  102.     /*
  103.      *        Resident structure for library initialisation
  104.      */
  105.  
  106. static struct Resident Resident = {
  107.     RTC_MATCHWORD,                                /* word to match on (ILLEGAL) */
  108.     &Resident,                                    /* pointer to the above */
  109.     &Resident+sizeof(struct Resident),
  110.                                                     /* address to continue scan */
  111.     RTF_AUTOINIT,                                /* various tag flags */
  112.     VERSION,                                        /* release version number */
  113.     NT_LIBRARY,                                    /* type of module (NT_XXXXXX) */
  114.     0,                                                /* initialization priority */
  115.     MultiUserName,                                /* pointer to node name */
  116.     MultiUserIDString,                        /* pointer to identification string */
  117.     MakeLibStuff                                /* pointer to init code */                            
  118. };
  119.